<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>全部用户</title>
    <bootstrapcss/>
</head>
<body>
<table class="table table-bordered table-striped table-hover table-condensed">
    <thead>
    <tr>
        <th width="5%">uid</th>
        <th width="15%">用户名</th>
        <th width="15%">创建时间</th>
        <th width="15%">最后登录时间</th>
        <th width="20%">邮箱</th>
        <th width="10%">操作</th>
    </tr>
    </thead>
    <foreach name="data" item="v">
        <tr>
            <td>{$v['uid']}</td>
            <td>{$v['username']}</td>
            <td>{:date('Y-m-d H:i:s',$v['create_time'])}</td>
            <td>{:date('Y-m-d H:i:s',$v['last_login_time'])}</td>
            <td>{$v['email']}</td>
            <td><a href="{:U('Admin/User/is_admin',array('uid'=>$v['uid'],'is_admin'=>$v['is_admin']))}">
                <eq name="v['is_admin']" value="1">取消管理员授权
                    <else/>
                    授权为管理员
                </eq>
            </a></td>
        </tr>
    </foreach>
</table>
<div style="text-align: center;"> {$page}</div>
<bootstrapjs/>
</body>
</html>